<HTML>
<HEAD><TITLE>Address Page</TITLE></HEAD>
<BODY>
<%
String residence = request.getParameter("residence");
session.setAttribute("residence",residence);
String count = "0";
session.setAttribute("count",count);
%>

User Name : <%= session.getAttribute("fullName")%> <p>
Citizenship : <%=session.getAttribute("country")%> <p>
Country of Residence : <%=residence%> <p>
Please enter your address: 
<p>
<%
if(session.getAttribute("country").equals("United States"))
{
%>
<FORM METHOD="GET" ACTION="location.jsp">
<%
}
else 
{
%>
<FORM METHOD="GET" ACTION="residency.jsp">
<%
}
%>
Street : 
<INPUT TYPE="TEXT" SIZE="30" NAME="street"/> <p />
City :
<INPUT TYPE="TEXT" SIZE="20" NAME="city"/> <p />
<%
if(residence.equals("United States")){
%>
State : 
<INPUT TYPE="TEXT" SIZE="20" NAME="state"/> <p />
<% 
}
else
{
%>
Country Telephone Code :
<INPUT TYPE="TEXT" SIZE="3" NAME="code"/> <p />
<%
}
%>
Zip Code : 
<INPUT TYPE="TEXT" SIZE="5" NAME="zipCode"/> <p />
Area Code : 
<INPUT TYPE="TEXT" SIZE="20" NAME="areaCode"/> <p />
Number : 
<INPUT TYPE="TEXT" SIZE="10" NAME="number"/> <p />

<INPUT TYPE="SUBMIT" VALUE="Submit"/>
</FORM>

</BODY>
</HTML>
